/* lcn/include/lcnd/lcnd.h 
 * 
 * This file is part of lcnd. 
 * 
 * lcnd is free software: you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published by 
 * the Free Software Foundation, either version 3 of the License, or 
 * (at your option) any later version. 
 * 
 * lcnd is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
 * GNU General Public License for more details. 
 * 
 * You should have received a copy of the GNU General Public License 
 * along with lcnd. If not, see <https://www.gnu.org/licenses/>
 */ 



#ifndef __LCN_LCND_H
#define __LCN_LCND_H

#include <lcnd/lcn.h>

int lcnd_init(void);
int lcnd_new_connection(int fd);
int lcnd_close_connection(int fd);
int lcnd_do_request(int fd, char *);

struct article {
	char 			*name;
	int 			len;
	struct klist_node 	node;
};

#define LCND_PATH 		"."
#define lcnd_log(s, ...) 	printf(s, ##__VA_ARGS__)

#endif

